<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8"/>
    <title>login</title>
    <style>.error {
        color: red;
    }</style>
</head>
<body>
<div class="error"><label th:text="${error}"></label></div>
<form method="post">
    用户名：<input type="text" name="username" >
    <!--<shiro:principal/>-->
    <br/>
    密码：<input type="password" name="password"><br/>
    自动登录：<input type="checkbox" name="rememberMe" value="true"><br/>
    <input type="submit" value="登录">
</form>
</body>
</html>